<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta charset="utf-8"/>
    <title>后盾人商城后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <link rel="stylesheet" href="/shop/thinkphpshop/Public/Admin/css/bootstrap.css" type="text/css"/>
    <link rel="stylesheet" href="/shop/thinkphpshop/Public/Admin/css/animate.css" type="text/css"/>
    <link rel="stylesheet" href="/shop/thinkphpshop/Public/Admin/css/font-awesome.min.css" type="text/css"/>
    <link rel="stylesheet" href="/shop/thinkphpshop/Public/Admin/css/font.css" type="text/css"/>
    <link rel="stylesheet" href="/shop/thinkphpshop/Public/Admin/js/calendar/bootstrap_calendar.css" type="text/css"/>
    <link rel="stylesheet" href="/shop/thinkphpshop/Public/Admin/js/jvectormap/jquery-jvectormap-1.2.2.css" type="text/css"/>
    <link rel="stylesheet" href="/shop/thinkphpshop/Public/Admin/css/app.css" type="text/css"/>
    <link rel="stylesheet" href="/shop/thinkphpshop/Public/uploadify/uploadify.css">
    <!--[if lt IE 9]>
    <script src="/js/ie/html5shiv.js"></script>
    <script src="/js/ie/respond.min.js"></script>
    <script src="/js/ie/excanvas.js"></script>
    <script src="/shop/thinkphpshop/Public/admin/jquery.min.js"></script>
    <script src="/shop/thinkphpshop/Public/uploadify/jquery.uploadify.min.js"></script>
    <![endif]-->
    <script>
        //配置后台地址
        var hdjs = {
            'base': '/shop/thinkphpshop/node_modules/hdjs',
            'ueditor':'',
            'uploader': '/admin/Component/uploader',
            'filesLists': '/admin/Component/filesLists',
            'removeImage': '删除图片后台地址'
        };
    </script>
    <!--<script src="/node_modules/hdjs/app/util.js"></script>-->
    <script src="/shop/thinkphpshop/node_modules/hdjs/require.js"></script>
    <script src="/shop/thinkphpshop/node_modules/hdjs/config.js"></script>
</head>
<style>
    .ng-cloak { display : none; }
</style>
<body ng-cloak class="ng-cloak" ng-controller="ctrl">
<section class="vbox">
    <header class="bg-black dk header navbar navbar-fixed-top-xs">
        <div class="navbar-header aside-md">
            <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen,open" data-target="#nav,html">
                <i class="fa fa-bars"></i>
            </a>
            <a href="#" class="navbar-brand" data-toggle="fullscreen"><img src="/shop/thinkphpshop/Public/Admin/images/logo.png" class="m-r-sm">后盾人</a>
            <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user">
                <i class="fa fa-cog"></i>
            </a>
        </div>
        <ul class="nav navbar-nav hidden-xs">
            <li class="dropdown">
                <a href="http://www.kancloud.cn/manual/thinkphp/1678" target="_blank" class="dropdown-toggle dker" >
                    <i class="fa fa-wordpress"></i>
                    <span class="font-bold"> thinkphp手册</span>
                </a>
            </li>
        
            <li class="dropdown">
                <a href="http://fontawesome.dashgame.com/" target="_blank" class="dropdown-toggle dker" >
                    <i class="fa fa-font"></i>
                    <span class="font-bold">字体库</span>
                </a>
            </li>
        </ul>
        <ul class="nav navbar-nav navbar-right m-n hidden-xs nav-user">
            <li class="dropdown hidden-xs">
                <a href="#" class="dropdown-toggle dker" data-toggle="dropdown"><i class="fa fa-fw fa-search"></i></a>
                <section class="dropdown-menu aside-xl animated fadeInUp">
                    <section class="panel bg-white">
                        <form role="search">
                            <div class="form-group wrapper m-b-none">
                                <div class="input-group">
                                    <input type="text" class="form-control" placeholder="Search">
                                    <span class="input-group-btn">
                      <button type="submit" class="btn btn-info btn-icon"><i class="fa fa-search"></i></button>
                    </span>
                                </div>
                            </div>
                        </form>
                    </section>
                </section>
            </li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <span class="thumb-sm avatar pull-left">
              <img src="/shop/thinkphpshop/Public/Admin/images/avatar.jpg">
            </span>
                    张强 <b class="caret"></b>
                </a>
                <ul class="dropdown-menu animated fadeInRight">
                    <span class="arrow top"></span>
                    <li>
                        <a href="#">我的资料</a>
                    </li>
                    <li class="divider"></li>
                    <li>
                        <a href="<?php echo u('admin/login/out');?>" >退出</a>
                    </li>
                </ul>
            </li>
        </ul>
    </header>
    <section>
        <section class="hbox stretch">
            <!-- .aside -->
            <aside class="bg-light lter b-r aside-md hidden-print hidden-xs" id="nav">
                <section class="vbox">
                    <header class="header bg-primary lter text-center clearfix">
                        <div class="btn-group">
                            <button type="button" class="btn btn-sm btn-dark btn-icon" title="New project"><i class="fa fa-plus"></i></button>
                            <div class="btn-group hidden-nav-xs">
                                <button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown">
                                    快捷导航
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu text-left">
                                    <li><a href="#">网站配置</a></li>
                                    <li><a href="#">公众号设置</a></li>
                                </ul>
                            </div>
                        </div>
                    </header>
                    <section class="w-f scrollable">
                        <div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="5px" data-color="#333333">

                            <!-- nav -->
                            <nav class="nav-primary hidden-xs">
                                <ul class="nav">
                                    <li class="active">
                                        <a href="index.html" class="active">
                                            <i class="fa fa-dashboard icon">
                                                <b class="bg-danger"></b>
                                            </i>
                                            <span class="pull-right">
                          <i class="fa fa-angle-down text"></i>
                          <i class="fa fa-angle-up text-active"></i>
                        </span>
                                            <span>商品管理</span>
                                        </a>
                                        <ul class="nav lt">
                                            <li>
                                                <a href="<?php echo U('Goods/index');?>">
                                                    <i class="fa fa-angle-right"></i>
                                                    <span>商品列表</span>
                                                </a>
                                            </li>
                                            <li class="active">
                                                <a href="<?php echo U('Goods/store');?>" class="active">
                                                    <i class="fa fa-angle-right"></i>
                                                    <span>添加商品</span>
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="#layout">
                                            <i class="fa fa-columns icon">
                                                <b class="bg-warning"></b>
                                            </i>
                                            <span class="pull-right">
                          <i class="fa fa-angle-down text"></i>
                          <i class="fa fa-angle-up text-active"></i>
                        </span>
                                            <span>品牌管理</span>
                                        </a>
                                        <ul class="nav lt">
                                            <li>
                                                <a href="<?php echo u('Brand/index');?>">
                                                    <i class="fa fa-angle-right"></i>
                                                    <span>品牌列表</span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="<?php echo u('Brand/add');?>">
                                                    <i class="fa fa-angle-right"></i>
                                                    <span>添加品牌</span>
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="#layout">
                                            <i class="fa fa-columns icon">
                                                <b class="bg-warning"></b>
                                            </i>
                                            <span class="pull-right">
                          <i class="fa fa-angle-down text"></i>
                          <i class="fa fa-angle-up text-active"></i>
                        </span>
                                            <span>分类管理</span>
                                        </a>
                                        <ul class="nav lt">
                                            <li>
                                                <a href="<?php echo u('Category/index');?>">
                                                    <i class="fa fa-angle-right"></i>
                                                    <span>分类列表</span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="<?php echo u('Category/add');?>">
                                                    <i class="fa fa-angle-right"></i>
                                                    <span>添加分类</span>
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="#uikit">
                                            <i class="fa fa-flask icon">
                                                <b class="bg-success"></b>
                                            </i>
                                            <span class="pull-right">
                          <i class="fa fa-angle-down text"></i>
                          <i class="fa fa-angle-up text-active"></i>
                        </span>
                                            <span>类型管理</span>
                                        </a>
                                        <ul class="nav lt">
                                            <li>
                                                <a href="<?php echo u('Type/index');?>">
                                                    <i class="fa fa-angle-right"></i>
                                                    <span>类型列表</span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="<?php echo u('Type/add');?>">
                                                    <i class="fa fa-angle-right"></i>
                                                    <span>类型添加</span>
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </nav>
                            <!-- / nav -->
                        </div>
                    </section>

                    <footer class="footer lt hidden-xs b-t b-light">
                        <div id="chat" class="dropup">
                            <section class="dropdown-menu on aside-md m-l-n">
                                <section class="panel bg-white">
                                    <header class="panel-heading b-b b-light">Active chats</header>
                                    <div class="panel-body animated fadeInRight">
                                        <p class="text-sm">No active chats.</p>
                                        <p><a href="#" class="btn btn-sm btn-default">Start a chat</a></p>
                                    </div>
                                </section>
                            </section>
                        </div>
                        <div id="invite" class="dropup">
                            <section class="dropdown-menu on aside-md m-l-n">
                                <section class="panel bg-white">
                                    <header class="panel-heading b-b b-light">
                                        John <i class="fa fa-circle text-success"></i>
                                    </header>
                                    <div class="panel-body animated fadeInRight">
                                        <p class="text-sm">No contacts in your lists.</p>
                                        <p><a href="#" class="btn btn-sm btn-facebook"><i class="fa fa-fw fa-facebook"></i> Invite from Facebook</a></p>
                                    </div>
                                </section>
                            </section>
                        </div>
                        <a href="#nav" data-toggle="class:nav-xs" class="pull-right btn btn-sm btn-light btn-icon">
                            <i class="fa fa-angle-left text"></i>
                            <i class="fa fa-angle-right text-active"></i>
                        </a>
                        <div class="btn-group hidden-nav-xs">
                            <i class="fa fa-user-md"></i> 客服: 400-820-8820
                            <!--<button type="button" title="Chats" class="btn btn-icon btn-sm btn-light" data-toggle="dropdown" data-target="#chat"><i class="fa fa-comment-o"></i></button>-->
                            <!--<button type="button" title="Contacts" class="btn btn-icon btn-sm btn-light" data-toggle="dropdown" data-target="#invite"><i class="fa fa-facebook"></i></button>-->
                        </div>
                    </footer>
                </section>
            </aside>
            <!-- /.aside -->

            <section id="content">
                <section class="vbox">
                    <section class="scrollable padder">
                        
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i>货品管理</a></li>
    <li class="active">货品列表</li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">货品列表</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">货品列表</header>
            <div class="panel-body">
                <form class="form-horizontal" method="post" action="">
                    <table id="MyStretchGrid" class="table table-striped datagrid m-b-sm">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <!--颜色  尺码  需要循环出来，不是写死-->
                            <?php if(is_array($temp)): $i = 0; $__LIST__ = $temp;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><th><?php echo ($v['name']); ?></th><?php endforeach; endif; else: echo "" ;endif; ?>
                            <th>库存</th>
                            <th>货号</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if(is_array($oldData)): $i = 0; $__LIST__ = $oldData;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                                <td><?php echo ($vo['glid']); ?></td>
                                <?php if(is_array($vo['combine'])): $i = 0; $__LIST__ = $vo['combine'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?><td><?php echo ($vv); ?></td><?php endforeach; endif; else: echo "" ;endif; ?>
                                <td><?php echo ($vo['inventory']); ?></td>
                                <td><?php echo ($vo['number']); ?></td>
                                <td>
                                    <a href="<?php echo u('GoodsList/edit',['glid'=>$vo['glid']]);?>"><i class="fa fa-pencil"></i></a>
                                    <a href="<?php echo u('GoodsList/del',['glid'=>$vo['glid']]);?>"><i class="fa fa-times text-danger text"></i></a>
                                </td>
                            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            <tr>
                                <td>添加货品</td>
                                <?php if(is_array($temp)): $i = 0; $__LIST__ = $temp;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><td>
                                    <select name="combine[]" class="form-control m-b">
                                        <option value="">请选择</option>
                                        <?php if(is_array($v['value'])): $i = 0; $__LIST__ = $v['value'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vv['gtid']); ?>"><?php echo ($vv['gtvalue']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </select>
                                </td><?php endforeach; endif; else: echo "" ;endif; ?>
                                <td>
                                    <input type="text" class="form-control" name="inventory">
                                </td>
                                <td>
                                    <input type="text" class="form-control" name="number">
                                </td>
                                <td></td>

                            </tr>
                        </tbody>
                    </table>
                    <div class="form-group">
                        <button type="submit" class="btn btn-twitter btn-block m-b-sm">提交</button>
                    </div>
                </form>
            </div>
        </section>
    </div>
</div>






                    </section>
                </section>
                <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen, open" data-target="#nav,html"></a>
            </section>
        </section>
    </section>
</section>
<script>
    require(['util', 'underscore'], function ($, _) {
        require(['/shop/thinkphpshop/Public/Admin/js/app.js','css!/shop/thinkphpshop/Public/Admin/css/app.css']);
        require(['angular', 'util'], function (angular) {
            angular.module('app', []).controller('ctrl', ['$scope', function ($scope) {
                if (angular.isFunction(controller)) {
                    controller($scope, $, _);
                }
            }]);
            angular.bootstrap(document.getElementsByTagName('body'), ['app']);
        });
    });
</script>
<!--<script src="/shop/thinkphpshop/Public/js/bootstrap.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/app.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/slimscroll/jquery.slimscroll.min.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/charts/easypiechart/jquery.easy-pie-chart.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/charts/sparkline/jquery.sparkline.min.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/charts/flot/jquery.flot.min.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/charts/flot/jquery.flot.tooltip.min.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/charts/flot/jquery.flot.resize.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/charts/flot/jquery.flot.grow.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/charts/flot/demo.js"></script>-->

<!--<script src="/shop/thinkphpshop/Public/js/calendar/bootstrap_calendar.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/calendar/demo.js"></script>-->

<!--<script src="/shop/thinkphpshop/Public/js/sortable/jquery.sortable.js"></script>-->

<!--<script src="/shop/thinkphpshop/Public/js/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/jvectormap/jquery-jvectormap-world-mill-en.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/jvectormap/demo.js"></script>-->
<!--<script src="/shop/thinkphpshop/Public/js/app.plugin.js"></script>-->
</body>
</html>